package com.swiftride.pojo.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderInfoVo {

    private String driverId;

    private String orderNo;

    //司机距离乘客的距离
    private Double distance;

    //乘客到达目的地的距离
    private BigDecimal mileage;

    //花费时间
    private Integer minutes;

    //订单金额
    private BigDecimal orderAmount;

    private String startPlace;

    private String endPlace;

    private String remindOrderTemplate = "您有新的订单,请及时查看。从%s到%s,全程%s公里,大约需要%s分钟,预计金额%s元";

    public String getRemindOrder() {
        return String.format(remindOrderTemplate, startPlace, endPlace, mileage, minutes, orderAmount);
    }
}
